package com.dreamwhale.machinery.user.mapper;

import com.dreamwhale.machinery.user.entity.UserShop;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商户表 Mapper 接口
 * </p>
 *
 * @author Author
 * @since 2020-05-28
 */
public interface UserShopMapper extends BaseMapper<UserShop> {

    /**
     * 模糊/条件/销量查询倒叙
     *
     * @param merchantName
     * @param provinceCode
     * @param cityCode
     * @return
     */
    List<UserShop> selectUserShopsLike(@Param("merchantName") String merchantName, @Param("provinceCode") String provinceCode, @Param("cityCode") String cityCode);


    /**
     * 模糊/条件/销量查询
     *
     * @param merchantName
     * @param provinceCode
     * @param cityCode
     * @return
     */
    List<UserShop> selectUserShopsLikeAsc(@Param("merchantName") String merchantName, @Param("provinceCode") String provinceCode, @Param("cityCode") String cityCode);
}
